package com.qf.ssm.utlis;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 黄梓濠
 * @Create 2024-01-07-19:30
 */
@Configuration
public class SnowflakeUtils {
    @Bean
    public Snowflake snowflake(){
        return IdUtil.getSnowflake(1,1);
    }
}
